package com.scau.service.impl.view;

import java.io.Serializable;

import org.springframework.stereotype.Component;

import com.scau.model.business.PurchaseDetail;
import com.scau.model.view.PurchaseDetailView;
import com.scau.service.BaseService;

@Component
public class PurchaseDetailViewService extends BaseService<PurchaseDetailView> implements Serializable{

	@Override
	public PurchaseDetailView get(PurchaseDetailView entity){
		if(null!=entity&&null!=entity.getId()&&0!=entity.getId()){
			return super.get(entity, entity.getId());
		}else if (null!=entity) {
			return super.get(entity);
		}else {
			return null;
		}
	}
}
